<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../5.25/vue.js"></script>
</head>
<body>
    <div id="app">
        <button @click="chick">查看组件内容</button>
        <my-comp></my-comp>
    </div>
</body>
<script>
    Vue.component('my-comp',{
        template:'<div>我是组件信息</div>'
    })
    var vm=new Vue({
        el:'#app',
        methods:{
            chick(){
                console.log(this.$children)
            }
        }
    })
</script>
</html>